package com.qijian.maindata.domain.query;

import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Set;


/**
 * 工艺线路对象 查询条件类
 *
 * @author qijian
 * @date 2021-09-03
 */

@Data
@ToString
@TableName("main_line")
public class LineQuery {

    @WhereType(tableName = "main_line", filed = "line_id")
    private Long lineId;
    @WhereType(tableName = "main_line", filed = "line_code", type = WhereTypeEnum.LIKE)
    private String lineCode;
    @WhereType(tableName = "main_line", filed = "line_name", type = WhereTypeEnum.LIKE)
    private String lineName;
    @WhereType(tableName = "main_line", filed = "line_classify")
    private String lineClassify;
    @WhereType(tableName = "main_line", filed = "line_version", type = WhereTypeEnum.LIKE)
    private String lineVersion;
    @WhereType(tableName = "main_line", filed = "is_default")
    private String isDefault;
    @WhereType(tableName = "main_line", filed = "is_disabled")
    private Boolean isDisabled;
    @WhereType(tableName = "main_item", filed = "item_code")
    private String itemCode;
    @WhereType(tableName = "main_line_bom", filed = "item_id")
    private String itemId;
    @WhereType(tableName = "main_line_bom", filed = "bom_id")
    private String bomId;

    @WhereType(filed = "line_id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
}
